Integrand size = 16, antiderivative size = 76 \[ \int e^{c (a+b x)} \cot (d+e x) \, dx=\frac {i e^{c (a+b x)}}{b c}-\frac {2 i e^{c (a+b x)} \operatorname {Hypergeometric2F1}\left (1,-\frac {i b c}{2 e},1-\frac {i b c}{2 e},e^{2 i (d+e x)}\right )}{b c} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {4528, 2225, 2283} \[ \int e^{c (a+b x)} \cot (d+e x) \, dx=\frac {i e^{c (a+b x)}}{b c}-\frac {2 i e^{c (a+b x)} \operatorname {Hypergeometric2F1}\left (1,-\frac {i b c}{2 e},1-\frac {i b c}{2 e},e^{2 i (d+e x)}\right )}{b c} \]
[In]
[Out]
Rule 2225
Rule 2283
Rule 4528
Rubi steps \begin{align*} \text {integral}& = -\left (i \int \left (-e^{c (a+b x)}-\frac {2 e^{c (a+b x)}}{-1+e^{2 i (d+e x)}}\right ) \, dx\right ) \\ & = i \int e^{c (a+b x)} \, dx+2 i \int \frac {e^{c (a+b x)}}{-1+e^{2 i (d+e x)}} \, dx \\ & = \frac {i e^{c (a+b x)}}{b c}-\frac {2 i e^{c (a+b x)} \operatorname {Hypergeometric2F1}\left (1,-\frac {i b c}{2 e},1-\frac {i b c}{2 e},e^{2 i (d+e x)}\right )}{b c} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(163\) vs. \(2(76)=152\).
Time = 1.21 (sec) , antiderivative size = 163, normalized size of antiderivative = 2.14 \[ \int e^{c (a+b x)} \cot (d+e x) \, dx=\frac {e^{c (a+b x)} \left (2 i b c e^{2 i (d+e x)} \operatorname {Hypergeometric2F1}\left (1,1-\frac {i b c}{2 e},2-\frac {i b c}{2 e},e^{2 i (d+e x)}\right )+i (b c+2 i e) \left (1+e^{2 i d}-2 e^{2 i d} \operatorname {Hypergeometric2F1}\left (1,-\frac {i b c}{2 e},1-\frac {i b c}{2 e},e^{2 i (d+e x)}\right )\right )\right )}{b c (b c+2 i e) \left (-1+e^{2 i d}\right )} \]
[In]
[Out]
\[\int {\mathrm e}^{c \left (x b +a \right )} \cot \left (e x +d \right )d x\]
[In]
[Out]
\[ \int e^{c (a+b x)} \cot (d+e x) \, dx=\int { \cot \left (e x + d\right ) e^{\left ({\left (b x + a\right )} c\right )} \,d x } \]
[In]
[Out]
\[ \int e^{c (a+b x)} \cot (d+e x) \, dx=e^{a c} \int e^{b c x} \cot {\left (d + e x \right )}\, dx \]
[In]
[Out]
\[ \int e^{c (a+b x)} \cot (d+e x) \, dx=\int { \cot \left (e x + d\right ) e^{\left ({\left (b x + a\right )} c\right )} \,d x } \]
[In]
[Out]
\[ \int e^{c (a+b x)} \cot (d+e x) \, dx=\int { \cot \left (e x + d\right ) e^{\left ({\left (b x + a\right )} c\right )} \,d x } \]
[In]
[Out]
Timed out. \[ \int e^{c (a+b x)} \cot (d+e x) \, dx=\int \mathrm {cot}\left (d+e\,x\right )\,{\mathrm {e}}^{c\,\left (a+b\,x\right )} \,d x \]
[In]
[Out]